package com.wxmit.base.exception;

/**
 * @author huangxiong
 * @date 2024/03/26 11:03
 */
public class UserLoginErrorException extends BaseException{
    private static final long serialVersionUID = 1L;

    /**
     * 业务错误码
     */
    private Integer code;
    /**
     * 错误提示
     */
    private String message;

    public UserLoginErrorException() {
        this("用户登陆失败！");
    }

    public UserLoginErrorException(String message) {
        this.code = 500;
        this.message = message;
    }


    public Integer getCode() {
        return code;
    }

    public BaseException setCode(Integer code) {
        this.code = code;
        return this;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public BaseException setMessage(String message) {
        this.message = message;
        return this;
    }
}
